<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="bean.CaipinDAO2"%>
<%@page import="bean.Caipin"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'xuancan.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
 <center><body style="background: url(images/222.png);background-size:100% 100% ; background-attachment: fixed">
  <font color=blue><h1>选餐开始</h1></font>
	<h3><font color=000000>
	<% ArrayList msglist=CaipinDAO2.retrieveAll();
		
			for(int i=msglist.size()-1;i>=0;i--){//菜品按照系列号
				Caipin mm=(Caipin)msglist.get(i);%>
				 菜名：<%=mm.getName() %>
				<p>描述：<%=mm.getMiaoshu() %></p>
				<p>原价：<%=mm.getPrice() %></p>
				<p>特惠价：<%=mm.getVipprice() %></p>
				<form name="form2" method="post" action="shopcar.jsp">
				<p><input type="checkbox" name="check" value="<%=mm.getVipprice()%>"/>购买</p>
			    <hr width="90%">
			    
	<%		}
		%>
		 <br/><input type="submit" value="提交"></form>
		 
     <tr align=center>
	<a href="Logout">注销登录</a></font></h3>
  </body></center>
</html>
